﻿//=====================================================================================================
// LocalizationLibrary
// The Localization Library is a collection of reusable software components that provide 
// support for localization. This library enables you to localize WPF, Silverlight and WP7 applications.
// (http://localizationlibrary.codeplex.com)
//=====================================================================================================
// Author: Nicola Gallo (Website: www.nicola.gallo.name, Email: nicolagmt@hotmail.it) 
//=====================================================================================================

namespace SLS.ExClassLib.Loc
{
    //.NET References
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// Event data for language change.
    /// </summary>
    public class LanguageChangedEventArgs : EventArgs
    {
        //Constructors

        /// <summary>
        /// <see cref="LanguageChangedEventArgs"/>'s constructor.
        /// </summary>
        /// <param name="currentLanguage">Current language.</param>
        /// <param name="previousLanguage">Previous language.</param>
        public LanguageChangedEventArgs(Language currentLanguage, Language previousLanguage)
        {
            this.CurrentLanguage = currentLanguage;
            this.PreviousLanguage = previousLanguage;
        }

        //Properties

        /// <summary>
        /// Gets current language.
        /// </summary>
        public Language CurrentLanguage { get; private set; }

        /// <summary>
        /// Gets previous language.
        /// </summary>
        public Language PreviousLanguage { get; private set; }
    }
}